package com.qiangesoft.sms.tencentcloud.controller;

import com.qiangesoft.sms.tencentcloud.handler.TencentcloudSendHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 短信测试
 *
 * @author qiangesoft
 * @date 2024-04-30
 */
@RequestMapping("/tsms")
@RestController
public class TSmsController {

    @Autowired
    private TencentcloudSendHandler tencentcloudSendHandler;

    @GetMapping("/send")
    public Boolean send() {
        String[] params = {"张三", "23"};
        return tencentcloudSendHandler.send(new String[]{"15883968757"}, params);
    }

}
